<?php include get_partial('_header');?>
<?php include get_partial('_left');?>

<div id="right">
  <h3 class="right_title">留言簿</h3>
  <div class="right_main">
    <div class="right_main_test">
      <form action="<?php echo url("?module=message");?>" method="post">
        <table class="message">
          <tr>
            <td>称呼:</td>
            <td><input class="message_input" onfocus="this.className='color_input_hover'" onblur="this.className='message_input'" name="author" maxlength="40" value="<?php if (isset($_POST['author'])) { echo $_POST['author']; }?>" />
              <?php if (isset($GLOBALS['errors']['author'])) {?>
              <font color="red"><?php echo $GLOBALS['errors']['author'];?></font>
              <?php }?>
            </td>
          </tr>
          <tr>
            <td>电子信箱:</td>
            <td><input class="message_input" onfocus="this.className='color_input_hover'" onblur="this.className='message_input'" name="email" maxlength="40" value="<?php if (isset($_POST['email'])) { echo $_POST['email']; }?>" />
              <?php if (isset($GLOBALS['errors']['email'])) {?>
              <font color="red"><?php echo $GLOBALS['errors']['email'];?></font>
              <?php }?>
            </td>
          </tr>
          <tr>
            <td>联系电话:</td>
            <td><input class="message_input" onfocus="this.className='color_input_hover'" onblur="this.className='message_input'" name="telephone" maxlength="40" value="<?php if (isset($_POST['telephone'])) { echo $_POST['telephone']; }?>" />
              <?php if (isset($GLOBALS['errors']['telephone'])) {?>
              <font color="red"><?php echo $GLOBALS['errors']['telephone'];?></font>
              <?php }?>
            </td>
          </tr>
          <tr>
            <td>留言:</td>
            <td><textarea class="message_input" onfocus="this.className='color_input_hover'" onblur="this.className='message_input'" name="content"><?php if (isset($_POST['content'])) { echo $_POST['content']; }?>
</textarea>
              <?php if (isset($GLOBALS['errors']['content'])) {?>
              <font color="red"><?php echo $GLOBALS['errors']['content'];?></font>
              <?php }?>
            </td>
          </tr>
          <tr>
            <td><input class="message_button" type="submit" /></td>
            <td><input class="message_button" type="reset" /></td>
          </tr>
        </table>
      </form>
    </div>
  </div>
</div>
<?php include get_partial('_footer');?>
